// TemplateSwiper.scss
.template-swiper {
  width: 98%;
  padding: 0px 10px;
 
 

  .section-top {
    .notify {
      width: 100%;
      height: 50px;
      line-height: 50px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      color: #929796;
      font-size: 12px;

      .more {
        position: relative;
        left: 47%;
      }
    }
  }

  .swiper-section {
    position: relative;
    padding: 20px 0;
    min-height: 420px;
    overflow: hidden;

    .swiper-container {
      display: flex;
      gap: 30px;
      transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
      padding-left: 10px;
      flex-wrap: nowrap;

      .swiper-item {
        flex: 0 0 calc((100% - 5 * 40px) / 6);
        position: relative;
        overflow: visible !important;
        border-radius: 8px;
        transition: transform 0.3s;

        img {
          width: 100%;
          height: 310px;
          object-fit: cover;
          transition: transform 0.3s;
          cursor: pointer;
          &:hover {
            transform: scale(1.03);
          }
        }

        .image-container {
          position: relative;
          height: 100%;

          .hover-elements {
            opacity: 0;
            transition: opacity 0.3s ease;

            &.active {
              opacity: 1;
            }

            .top-icons {
              position: absolute;
              top: 12px;
              right: 12px;
              display: flex;
              gap: 8px;
              z-index: 2;
               
              .top-left {
                display: flex;
                gap: 8px;
                position: absolute;
                left: -156px;
                
              }

              .swiperIcon {
                width: 24px;
                height: 24px;
                background: #fff;
                padding: 4px;
                border-radius: 4px;
                cursor: pointer;
                transition: all 0.3s;

                &:hover {
                  background: #ccc5;
                }
              }
            }

            .bottom-content {
              position: absolute;
              bottom: 12px;
              left: 0;
              right: 0;
              display: flex;
              justify-content: space-between;
              align-items: center;
              padding: 0 12px;

              .use-btn {
                padding: 6px 16px;
                border-radius: 8px;
                font-size: 12px;
                cursor: pointer;
                transition: all 0.3s;

                &:hover {
                  background: #2254f4;
                }
              }

              .vip-icon {
                width: 30px;
                height: 20px;
                color: #ffd700;
                font-size: 20px;
                padding: 0px 5px;
                background: rgba(0, 0, 0, 0.6);
                border-radius: 10px;
              }
            }
          }
        }
      }
    }

    .arrow {
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      width: 40px;
      height: 40px;
      color: #ccc6;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      transition: opacity 0.3s;
      z-index: 10;

      &.left {
        left: -15px;
      }

      &.right {
        right: 10px;
      }

      svg {
        font-size: 18px;
        color: #333;
      }
    }
  }

  .ellipsis-popup {
    position: absolute;
    top: 35px;
    right: -150px;
    width: 180px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 0 10px;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 999;

    &.active {
      opacity: 1;
      transform: translateY(0);
    }

    h5 {
      width: 100%;
      border-bottom: 1px solid #ccc;
      line-height: 20px;
      margin-bottom: 10px;
    }

    .popup-item {
      padding: 8px 12px;
      font-size: 12px;
      color: #333;
      cursor: pointer;
      transition: background 0.2s;
      display: flex;
      align-items: center;
      gap: 5px;

      &:hover {
        background: #f5f5f5;
      }

      &:first-child {
        border-radius: 8px 8px 0 0;
      }

      &:last-child {
        border-radius: 0 0 8px 8px;
      }

      img {
        width: 12px;
        height: 12px;
        
      }
    }
  }
}